<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>静态模板查询</title>

</head>
<body>
	<table>
		<thead>
			<tr>
				<td colspan="8">
					<font>当前页:第${pageView.currentpage}页 | 总记录数:${pageView.totalrecord}条 | 每页显示:${pageView.maxrecord}条 | 总页数:${pageView.totalpage}页</font>　
					<br/>
					<s:iterator begin="pageView.pageindex.startindex" end="pageView.pageindex.endindex" var="pageIndex">
						<s:if test="pageView.currentpage==#pageIndex">
							<b><font color="#00ffff">${pageIndex}</font></b>
						</s:if>
						<s:else> 
							<s:url action="bbs_discuss" namespace="/forward/view" id="discussList">
								<s:param name="bookid" value="bookid"/>
								<s:param name="currentpage" value="pageIndex"/>
							</s:url>
							<a onclick="changeContent('/control/mapping/channel_list.go?currentpage=${pageIndex}')">
							[${pageIndex}]</a>
						</s:else>
					</s:iterator>
				</td>
			</tr>
			<tr>
				<td>编号</td>
				<td>栏目块名称</td>
				<td>所在频道</td>
				<td>生成模版 </td>
				<td>生成HTML</td>
				<td>浏览栏目块下的信息</td>
				<td>修改</td>
				<td>删除</td>
			</tr>
		</thead> 
		<tbody>
			<s:iterator value="pageView.records" var="channel_list">
				<tr>
					<td>${channel_list.id}</td>
					<td>${channel_list.name}</td>
					<td>${channel_list.position}</td>
					<td>${channel_list.mould}</td>
					<td>${channel_list.html}</td>
					<td>
						<a href="#" onclick="changeContent('${channel_list.url}','ftlName=${channel_list.mould}&htmlName=${channel_list.html}&maxrecord=15&page=1')">浏览栏目块下的信息</a>
					</td>									
					<td><input type="image" src="/image/admin/edit.gif"/></td>
					<td><input type="image" src="/image/admin/delete.gif"/></td>
				</tr>
			</s:iterator>
		</tbody>
		<tfoot>
			<tr>
				<td colspan="8">
					<input type="button" value="添加栏目"  onclick="wBox.showBox()"/>
				</td>
			</tr>
		</tfoot>
	</table>
</body>
</html>